#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void my_reverse(int* nums, int left, int right)
{
	while (left < right)
	{
		int temp = nums[left];
		nums[left] = nums[right];
		nums[right] =  temp;
		right--;
		left++;
	}
}
void rotate(int* nums, int numsSize, int k)
{
	k = k %numsSize;
	my_reverse(nums, 0, numsSize - k - 1);
	my_reverse(nums, numsSize-k, numsSize -1);
	my_reverse(nums, 0, numsSize - 1);

}
int main() {
	int nums[] = { 1,2,3,4,4,5,6 };
	return 0;
}